home *** CD-ROM | disk | FTP | other *** search
Text File | 1995-10-19 | 694 b | 28 lines | [TEXT/KAHL] |
- // Prototypes
- void DrawTheMenuBar( void );
-
- // Globals
- MenuHandle gAppleMenu;
-
- /******************************************************************
-
- Set up the menus and the menu bar
-
- ******************************************************************/
- void DrawTheMenuBar( void )
- {
- Handle myMenuBar;
-
- // This allocates storage for, and reads in a menu list from a MBAR res
- myMenuBar = GetNewMBar( 128 );
-
- // This installs a menu list (a list of handles to menus)
- SetMenuBar( myMenuBar );
-
- // Now add the apple menu items to the apple menu
- gAppleMenu = GetMHandle( MENU_APPLE );
- AddResMenu( gAppleMenu, 'DRVR' );
-
- // Draw the menu
- DrawMenuBar();
- }